package demo5;

class Base{
    public int a;
    public int b;

    public Base(int a, int b) {
        this.a = a;
        this.b = b;
        System.out.println("Base");
    }

    public void method(){
        System.out.println("methodBase");
    }
}
class Son extends Base{

    public Son(){
        super(1,2);
        System.out.println("Son");
    }
    public void method(){
        System.out.println("methodSon");
    }
    public void func(){
        super.method();
    }
}
public class Test {
    public static void main(String[] args) {
        Son son = new Son();
    }
}
